package Reply;
import java.sql.*;
import java.text.*;
public class ReplyItem {
	private int reply_id;
	private String id;
	private Timestamp date;
	private int content_id;
	private String content;
	
	static private SimpleDateFormat format1=
									new SimpleDateFormat("yyyy-MM-dd");
	static private SimpleDateFormat format2=
			new SimpleDateFormat("yyyy-MM-dd HH:mm");
	
	
	
	
	public int getReply_id() {
		return reply_id;
	}
	public void setReply_id(int reply_id) {
		this.reply_id = reply_id;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Timestamp getDate() {
		return date;
	}
	public void setDate(Timestamp date) {
		this.date = date;
	}
	public int getContent_id() {
		return content_id;
	}
	public void setContent_id(int content_id) {
		this.content_id = content_id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public static SimpleDateFormat getFormat1() {
		return format1;
	}
	public static void setFormat1(SimpleDateFormat format1) {
		ReplyItem.format1 = format1;
	}
	public static SimpleDateFormat getFormat2() {
		return format2;
	}
	public static void setFormat2(SimpleDateFormat format2) {
		ReplyItem.format2 = format2;
	}
	public String getDateShort(){
		
		return format1.format(date);
	}
	public String getDateLong(){
		
		return format2.format(date);
	}
}
